import axios from '@/libs/api.request'

// 到款管理
export class FinanceReceivableApi {
  //  获取列表
  static getList (params) {
    return axios.request({
      url: '/FinanceReceivable/GetList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出
  static export (params) {
    return axios.request({
      url: '/FinanceReceivable/Export',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导入
  static import (params) {
    return axios.request({
      url: '/FinanceReceivable/Import',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 智能匹配
  static autoMatch (params) {
    return axios.request({
      url: '/FinanceReceivable/AutoMatch',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出收款单-实收
  static exportCollectionDocReceived (params) {
    return axios.request({
      url: '/FinanceReceivable/ExportCollectionDocReceived',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 删除
  static delete (params) {
    return axios.request({
      url: '/FinanceReceivable/Delete',
      method: 'delete',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 批量删除
  static deleteBatch (params) {
    return axios.request({
      url: '/FinanceReceivable/DeleteBatch',
      method: 'delete',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出认领接口
  static exportAllClaim (params) {
    return axios.request({
      url: '/FinanceReceivable/ExportAllClaim',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 标记无需认领
  static signNoClaim (params) {
    return axios.request({
      url: '/FinanceReceivable/SignNoClaim',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 取消标记
  static signClaim (params) {
    return axios.request({
      url: '/FinanceReceivable/SignClaim',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 编辑备注
  static updateRemark (params) {
    return axios.request({
      url: '/FinanceReceivable/UpdateRemark',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出收款单
  static exportPaymentReceived (params) {
    return axios.request({
      url: '/FinanceReceivable/ExportPaymentReceived',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }
}
